package com.changgou;

import com.changgou.search.service.ESManagerService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = SearchApplication.class)
public class test01 {

    @Autowired
    private ESManagerService esManagerService;

    @Test
    public void test001(){
        esManagerService.createIndexAndMapping();
    }
    @Test
    public void test000(){
       esManagerService.importAll();

    }
}
